<template>
  <el-tooltip
    v-if="content.length"
    :content="content"
    :placement="placement"
    :effect="effect"
  >
    <slot></slot>
  </el-tooltip>
</template>
<script>
export default {
  name:'Tooltip',
  props: {
    content: {
      type: String,
      default: '',
    },
    placement: {
      type: String,
      default: 'top',
    },
    effect: {
      type: String,
      default: 'light',
    },
  },
}
</script>